import df from '@/utils/df'

export function getToken() {
  return df.storageGet('token')
}
export function getMenuList() {
  return df.storageGet('menu')
}
export function setMenuList(menu) {
  return df.storageSet({menu})
}
export function getHasToken() {
  return df.storageGet('hastoken')
}
export function setToken(token) {
  return df.storageSet({ token })
}
export function setHasToken(hastoken) {
  return df.storageSet({ hastoken })
}


export function removeToken() {
  return df.storageRemove('token')
}

export function getLock() {
  return df.storageGet('lock')
}

export function setLock(lock) {
  return df.storageSet({ lock })
}
export function removeLock() {
  return df.storageRemove('lock')
}
export function setLogin(loginInfo) {
  return df.storageSet({loginInfo})
}
export function setIsLogin(isLogin) {
  return df.storageSet({isLogin})
}
export function getIsLogin() {
  return df.storageGet('isLogin')
}
export function setRouterStorageList(router) {
  return df.storageSet({router})
}
export function getRouterStorageList() {
  return df.storageGet('router')
}
export function setPermissionList(permission) {
  return df.storageSet({permission})
}
export function getPermissionList() {
  return df.storageGet('permission')
}

export function setUserInfo(user) {
  return df.storageSet({user})
}
export function getUserInfo() {
  return df.storageGet('user')
}
export function removeUserInfo() {
  return df.storageRemove('token')
}
export function setSysCfgValue(sysCfgValue) {
  return df.storageSet({sysCfgValue})
}
export function getSysValue() {
  return df.storageGet('sysCfgValue')
}

